import request from '@/utils/request';

/**
 * 管理员登录 用户名登录
 * @param params
 * @returns {Promise<any>}
 */
export async function fakeAccountLogin(params) {
  return request('/admin/login/admin', {
    method: 'POST',
    data: params,
  });
}

/**
 * 退出登录
 * @returns {Promise<any>}
 */
export async function userLogout() {
  return request.post('/auth/logout')
}

